/*    */ package com.zimbra.cs.redolog.op;
/*    */ 
/*    */ import com.zimbra.cs.mailbox.Mailbox;
/*    */ import com.zimbra.cs.mailbox.MailboxManager;
/*    */ import com.zimbra.cs.mailbox.MailboxOperation;
/*    */ import com.zimbra.cs.redolog.RedoLogInput;
/*    */ import com.zimbra.cs.redolog.RedoLogOutput;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class PurgeOldMessages
/*    */   extends RedoableOp
/*    */ {
/*    */   public PurgeOldMessages()
/*    */   {
/* 37 */     super(MailboxOperation.PurgeOldMessages);
/*    */   }
/*    */   
/*    */   public PurgeOldMessages(int mailboxId) {
/* 41 */     this();
/* 42 */     setMailboxId(mailboxId);
/*    */   }
/*    */   
/*    */   protected String getPrintableData()
/*    */   {
/* 47 */     return null;
/*    */   }
/*    */   
/*    */ 
/*    */   protected void serializeData(RedoLogOutput out) {}
/*    */   
/*    */ 
/*    */   protected void deserializeData(RedoLogInput in) {}
/*    */   
/*    */ 
/*    */   public boolean isDeleteOp()
/*    */   {
/* 59 */     return true;
/*    */   }
/*    */   
/*    */   public void redo() throws Exception {
/* 63 */     Mailbox mbox = MailboxManager.getInstance().getMailboxById(getMailboxId());
/* 64 */     mbox.purgeMessages(getOperationContext());
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/redolog/op/PurgeOldMessages.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */